package action.plan;

import java.util.List;

import persistence.model.TdfkfaDictKcfs;
import persistence.model.TdfkfaDictKz;
import persistence.model.TdfkfaDictXmxz;
import service.DictInfoService;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

public class PreparePlanDictAction extends ActionSupport {

    private static final long serialVersionUID = 1L;

    private DictInfoService dictInfoService;

    private List<TdfkfaDictKcfs> kcfsList;

    private List<TdfkfaDictKz> kzList;

    private List<TdfkfaDictXmxz> xmxzList;

    public String all() throws Exception {

        kcfsList = dictInfoService.getKCFSList();
        kzList = dictInfoService.getKZList();
        xmxzList = dictInfoService.getXMXZList();

        return Action.SUCCESS;
    }
    
    public String kcfs() throws Exception {

        kcfsList = dictInfoService.getKCFSList();

        return Action.SUCCESS;
    }
    
    public String kz() throws Exception {

        kzList = dictInfoService.getKZList();

        return Action.SUCCESS;
    }
    
    public String xmxz() throws Exception {

        xmxzList = dictInfoService.getXMXZList();

        return Action.SUCCESS;
    }

    public void setDictInfoService(DictInfoService dictInfoService) {
        this.dictInfoService = dictInfoService;
    }

    public List<TdfkfaDictKcfs> getKcfsList() {
        return kcfsList;
    }

    public List<TdfkfaDictKz> getKzList() {
        return kzList;
    }

    public List<TdfkfaDictXmxz> getXmxzList() {
        return xmxzList;
    }

    public void setKcfsList(List<TdfkfaDictKcfs> kcfsList) {
        this.kcfsList = kcfsList;
    }

    public void setKzList(List<TdfkfaDictKz> kzList) {
        this.kzList = kzList;
    }

    public void setXmxzList(List<TdfkfaDictXmxz> xmxzList) {
        this.xmxzList = xmxzList;
    }

}
